package com.wyu.dao;


import com.wyu.pojo.menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {

    public int addMenu(menu menu);

    public int deleteMenuById(Integer id);

    public int updateMenu(menu menu);

    public menu queryMenuById(Integer id);

    public List<menu> queryMenu();

    Integer queryForPageTotalCount();

    List<menu> queryForPageItems(@Param("begin")int begin, @Param("pageSize")int pageSize);

    Integer queryForPageTotalCountByPrice(@Param("min")int min, @Param("max")int max);

    List<menu> queryForPageItemsByPrice(@Param("begin")int begin, @Param("pageSize")int pageSize, @Param("min")int min, @Param("max")int max);

}